var BaseHandler     = require('../base-handler');
var SystemServices  = require('../../../constants').SystemServices;
var HTTP_VERBS      = require('../../../constants').HTTP_VERBS;

//TODO: move it to Maintanance Controller
class UpgradePlanHandler extends BaseHandler {
    get pattern() {
        return "/admin/upgrade-plan-data";
    }

    doGET(request, response) {
        this.Controller.upgradePlanData((message) => {
            response.end(message);
        });
    }

    setup() {
        this.registerVerb(HTTP_VERBS.GET, this.doGET);
    }
}

module.exports = UpgradePlanHandler;